<template>
  <div>
    <el-form class="form-style form" :inline="true" :model="formInline">
      <el-row>
        <el-col>
          <el-form-item label="团长名称：" style="margin-left:20%"></el-form-item>
          <el-form-item label="分销总额：" style="margin-left:20%"></el-form-item>
          <el-form-item label="分销员佣金：" style="margin-left:20%"></el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col>
          <el-form-item label="推荐人：" style="margin-left:20%"></el-form-item>
          <el-form-item label="分销员数：" style="margin-left:20%"></el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-form ref="form" :inline="true" :model="form" label-width="80px" class="form-style">
      <el-form-item style="margin:10px 0 10px 30px">
        <el-input v-model="form.name" placeholder=" 拉新团长姓名"></el-input>
      </el-form-item>
      <el-form-item style="margin:10px 0 10px 30px">
        <el-input v-model="form.time" placeholder="注册时间"></el-input>
      </el-form-item>
      <el-form-item style="margin:10px 0 10px 30px">
        <el-button>重置</el-button>
        <el-button>查询</el-button>
      </el-form-item>
    </el-form>
    <div class="table-style">
      <el-table :data="tableData" style="width: 100%" border>
      <el-table-column prop="name" label="分销员"></el-table-column>
      <el-table-column prop="date" label="注册时间"></el-table-column>
      <el-table-column prop="money" label="分销总额"></el-table-column>
      <el-table-column prop="getmoneys" label="分销佣金"></el-table-column>
      <el-table-column prop="goods" label="分销订单数"></el-table-column>
    </el-table>
    <botpage
      class="botpage-style"
      :currentPage="currentPage"
      :PageSize="PageSize"
      :total="total"
      @handleCurrentChange="currentChange"
      @handleSizeChange="pageSizeChange"
    />
    </div>
  </div>
</template>

<script>
import Botpage from "@/components/botpage/Botpage";
export default {
  components: {
    Botpage,
  },
  methods:{ 
    currentChange(val) {
      this.currentPage = val ;
    },
    pageSizeChange(val) {
      this.PageSize = val;
    }
  },
  data() {
    return {
      form: {},
      state: 1,
      formInline:{},
      currentPage:1,
      PageSize:10,
      total:1,
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎a",
          money: "200",
          order: 20,
          goods: 13,
          event: 20,
          getmoney: "300.00",
          getmoneys: "100",
        },
        {
          date: "2016-05-04",
          name: "王小虎b",
          money: "3200",
          order: 20,
          goods: 13,
          event: 20,
          getmoney: "300.00",
          getmoneys: "100",
        },
      ],
    };
  },
};
</script>

<style lang='less' scoped>
</style>